function clickFun(x){
	switch(x){
		case 1:
		//跳转至登录界面
			window.location.href='login.html';
			break;
		case 2:
		//跳转至主页界面
			window.location.href='main.html';
		case 3:
		//跳转至手机界面
			window.location.href='phone.html';
			break;
		case '4':
		//跳转至小米路由器AX3000详情界面
			window.location.href='details.html';
			break;
		case 5:
		//跳转至个人界面
			window.location.href='my.html';
			break;
		case 6:
		//跳转至订单界面
			window.location.href='order.html';
			break;
		case 7:
		//跳转至购物车未登录界面
			window.location.href='shopping_cart.html';
			break;
		case 8:
		//跳转至购物车已登录界面
			window.location.href='shopping_cart2.html';
			break;
		default:
		//跳转至小米路由器AX3000详情界面
			window.location.href='details.html';
			break;
	}
}



function clickCode() {
	var doc=document;
	var DialogBox = doc.getElementById('dialogBox');
	var Back = doc.getElementById('black');
	//显示遮罩层
	Back.style.display='block';
	//显示弹出窗口
	DialogBox.style.display='block';
}


function clickBack(){
	var doc=document;
	var DialogBox = doc.getElementById('dialogBox');
	var Back = doc.getElementById('black');
	//隐藏遮罩层
	Back.style.display='none';
	//隐藏弹出窗口
	DialogBox.style.display='none';
}